package com.system.employee.service;

import java.util.List;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;

import com.system.employee.entity.Employee;
import com.system.user.entity.User;


public interface IEmployeeService{
	public void saveOrUpdate(Employee employee);
	public void delete(Employee employee);
	public void delete(List<Long> ids);
	public Employee findOne(Long id);
	public List<Employee> findAll();
	public Employee findUser(User user);
	//动态条件查询
	public Page<Employee> findAll(Specification<Employee> spec, Pageable pageable);
	//根据名字查employee实体
	public Employee findEmployeeByEmpName(String empName);
	public List<Employee> findByEmpNameLike(String query);
}
